<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Hello World</title>
<script src="../jsvm2/jsre.js"></script>
</head>
<script>

	function execute() {

		$import("example.HelloWorld");//调用jsvm2提供的$import函数加载“类”

		var obj = new example.HelloWorld("Mike");
		obj.say();

	}
</script>
</head>
<body>
	<h2>Example: Hello World!</h2>
	　<table border="1" width="640" id="table1" cellspacing="10" bgcolor="#CCCCCC" cellpadding="10">
		<tr>
			<td bgcolor="#FFFFFF"><b>$import</b>(&quot;example.HelloWorld&quot;);//调用jsvm2提供的$import函数加载“类”<br>
			<br>
			var obj = new <b>example.HelloWorld</b>(&quot;Mike&quot;);<br>
			obj.say();</td>
		</tr>
	</table><br>
	<button onclick="execute();" >execute</button>

</body>
</Html>